import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:get/get_navigation/src/bottomsheet/bottomsheet.dart';
import 'package:honeypotflutter/modules/recharge/page/recharge_pay/view.dart';
import 'package:honeypotflutter/public/public_get.dart';
import 'package:honeypotflutter/publicBussine/bussine_colors.dart';
import 'package:honeypotflutter/publicBussine/bussine_font.dart';

class RechargeItem extends StatelessWidget {
  final double monry;
  const RechargeItem({super.key, required this.monry});

  @override
  Widget build(BuildContext context) {
    return InkWell(
      child: Container(
        width: double.infinity,
        decoration: BoxDecoration(
          border: Border.all(color: MGColors.splitColor, width: 1),
          borderRadius: BorderRadius.circular(6),
        ),
        padding: EdgeInsets.only(left: 12, right: 12, top: 12, bottom: 12),
        margin: EdgeInsets.only(top: 5, bottom: 5),
        child: Text(
          "¥ ${monry.toStringAsFixed(2)}",
          style: TextStyle(
            fontSize: MGFont.textFont1,
            color: MGColors.text1Color,
          ),
        ),
      ),
      onTap: () {
        Get.to(RechargePayPage(), arguments: monry);
      },
    );
  }
}
